Skip to main content

Configuring the Destinations

We're going to use Prometheus and Loki for receiving metrics, logs, and events from Cribl Edge.

Loki stores log contents unindexed, relying on labels and timestamps that are indexed to form event streams. The method is similar to how data would be stored in a bucket or index on other systems.

Similarly, Prometheus uses names, labels (dimensions), and numerical values. You can then create dashboards to visualize the change in data points over time using these time series.

This sandbox is not focused on deploying Loki or Prometheus, so we've already provided running instances. Now you'll need to set up Destinations in Cribl Edge. These Destinations will be used later to consume metrics, logs, and events.

Configure the Loki Destination

important
  1. Click Collect from the sub-navigation menu.
  2. On the Collect tab, click Add Destination in the right-hand side Destination column.
  3. Expand the More Destinations accordion to reveal additional Destination tiles.
  4. Type Loki in the Filter Destinations textbox or scroll to find the Loki tile.
  5. Hover over the Loki tile and click the Add New button.
  6. In the Output ID field, enter: loki
  7. In the Loki URL, enter:
    http://loki.cribl.k8s:3100
  8. Click the Post-Processing tab.
  9. Delete the cribl_host and cribl_wp entries from System fields.
  10. Click Save.

Configure the Prometheus Destination

important
  1. On the Collect tab, click Add Destination in the right-hand side Destination column.
  2. If not already open, expand the More Destinations accordion to reveal additional Destination tiles.
  3. Type Prometheus in the Filter Destinations textbox, or scroll to find the Prometheus tile.
  4. Hover over the Prometheus tile and click the Add New button.
  5. In the Output ID field, enter: prometheus
  6. In the Remote Write URL, enter:
    http://prometheus.cribl.k8s:9090/api/v1/write
  7. Click the Post-Processing tab.
  8. Delete the cribl_host and cribl_wp entries from System fields.
  9. Click Save.

Now that you've configured the Destinations, you'll need to set up some basic Pipelines to transform the data (only slightly). Next, let's get the data flowing!